package com.beyond.pm.app

import android.app.Application
import com.beyond.common.util.AppUtils
import com.github.mikephil.charting.utils.Utils
import com.jung.net.NetConstantKeys
import dagger.hilt.android.HiltAndroidApp

/**
 * @author chen
 * @time 2023/5/31 11:19
 * @name ProjectManage
 * @class describe
 */
@HiltAndroidApp
class MyApp: Application() {
    override fun onCreate() {
        super.onCreate()
        Utils.init(this)

        AppUtils.isRelease = false
        AppUtils.init(this)

        NetConstantKeys.APP_BASE_URL = "http://10.71.4.66:5003/dev-api/"
        NetConstantKeys.READ_TIMEOUT = 15L
        NetConstantKeys.WRITE_TIMEOUT = 15L
        NetConstantKeys.CONNECT_TIMEOUT = 15L
//        NetConstantKeys.reqHeaderMap[CommonConstantKeys.REQUEST_HEADER_VERSION] =
//            BuildConfig.VERSION_NAME

    }
}